package sy.test.java.util.concurrent;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Task2 implements Runnable {

	private Logger logger = LoggerFactory.getLogger(this.getClass());

	private String order;

	public Task2(String order) {
		this.order = order;
	}

	@Override
	public void run() {
		System.out.println(Thread.currentThread().getName() + "开始处理[" + order + "]");
		try {
			Thread.sleep((int) (Math.random() * 5000));
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println(Thread.currentThread().getName() + "结束处理[" + order + "]");
	}

}
